package com.d3works.apps.cash.management.db.repo;

import com.d3works.apps.cash.management.db.ForecastGenerator;
import com.d3works.apps.cash.management.service.ForecastGeneratorToolService;

public class CashManagementForecastGeneratorRepository extends ForecastGeneratorRepository {

  @Override
  public ForecastGenerator copy(ForecastGenerator entity, boolean deep) {

    ForecastGenerator copy = super.copy(entity, deep);

    ForecastGeneratorToolService.resetForecastGeneratorStatusOnCopy(copy);
    return copy;
  }
}
